//
// Created by wuji on 2020/5/18.
//

#ifndef CPLUS_SERVER_H
#define CPLUS_SERVER_H


class socket_server {
	int port;
	int server_fd;
	int client_fd;
//	int close();

public:socket_server(int port);
public:bool create();
public:int Accept();

public:int Send(const int clientfd,char *buf,const int buflen);
public:int Recv(const int clientfd,char *buf,const int buflen);
};
#endif //CPLUS_SERVER_H
